package org.itboys.core.entity.mongo;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * Auther: 罗尧坤
 * Date: 2018/8/15
 * Description: 时间段entity类
 */

@Entity(value = "SundayTimeConfig",noClassnameStored = true)
public class SundayTimeConfig extends BaseMongoEntity{
    /**
     * 开始配送时间:
     * 这个时间点以后下单可以配送
     */
    private String workSt;

    /**
     * 结束工作时间:
     * 这个时间点以后下单得到第二天才配送
     */
    private String workEt;

    /**
     * 未付款订单在这个时间以后自动取消;
     * 单位 分钟
     */
    private Integer payEt;

    public SundayTimeConfig() {
    }

    public SundayTimeConfig(String workSt, String workEt, Integer payEt, Integer orderEt) {
        this.workSt = workSt;
        this.workEt = workEt;
        this.payEt = payEt;
        this.orderEt = orderEt;
    }

    /**
     * 已付款订单在这个时间以后会自动完成
     * 单位: 天
     */


    private Integer orderEt;

    public String getWorkSt() {
        return workSt;
    }

    public void setWorkSt(String workSt) {
        this.workSt = workSt;
    }

    public String getWorkEt() {
        return workEt;
    }

    public void setWorkEt(String workEt) {
        this.workEt = workEt;
    }

    public Integer getPayEt() {
        return payEt;
    }

    public void setPayEt(Integer payEt) {
        this.payEt = payEt;
    }

    public Integer getOrderEt() {
        return orderEt;
    }

    public void setOrderEt(Integer orderEt) {
        this.orderEt = orderEt;
    }
}
